import axios from 'axios';

export const GET_CHECK_CODE = () => { 
  return axios({
    url: '/api/user/captcha',
    method: 'GET',
  })
}
/*
 *@description: 登录
 *@params: 
  * userName:**
 *@author: 李少斌
 *@date: 2023-11-17 14:59:14
*/
export interface ILogin {
  username: string,
  password: string
  captcha: string
}
export const DO_LOGIN = (data:ILogin) => {
  return axios({
    url:'/api/staff/login',
    method: 'POST',
    data
  })
}